/* 本地影院页面样式 */

/* 播放器容器样式 */
#video-player-container {
    position: relative;
    background-color: #0f172a;
    border-radius: 0.5rem;
    overflow: hidden;
}

#video-player {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* 视频信息区域 */
#current-playback-info {
    transition: all 0.3s ease;
}

/* 搜索和筛选区域 */
#video-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#sort-option:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 表格样式 */
#videos-table {
    border-collapse: collapse;
    width: 100%;
}

#videos-table th {
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

#videos-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

#videos-table tr:hover {
    background-color: #f8fafc;
}

#videos-table tr:last-child td {
    border-bottom: none;
}

/* 文件图标样式 */
.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 8px;
}

.file-icon.folder {
    background-color: #3b82f6;
    color: white;
}

.file-icon.video {
    background-color: #10b981;
    color: white;
}

/* 操作按钮样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.action-btn.play {
    background-color: #3b82f6;
    color: white;
}

.action-btn.play:hover {
    background-color: #2563eb;
}

.action-btn.open {
    background-color: #f3f4f6;
    color: #374151;
}

.action-btn.open:hover {
    background-color: #e5e7eb;
}

/* 加载和空状态样式 */
#loading-indicator .animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#empty-state {
    color: #6b7280;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .aspect-video {
        aspect-ratio: 4/3;
    }
    
    #videos-table {
        font-size: 0.875rem;
    }
    
    #videos-table th,
    #videos-table td {
        padding: 0.5rem;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
}

/* 滚动条样式 */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 全屏按钮动画 */
#toggle-fullscreen {
    transition: transform 0.2s ease;
}

#toggle-fullscreen:hover {
    transform: scale(1.1);
}

/* 刷新按钮旋转动画 */
#refresh-btn i {
    transition: transform 0.3s ease;
}

#refresh-btn:hover i {
    transform: rotate(180deg);
}